package com.fast.commons.service;

import java.io.Serializable;
import java.util.List;

import com.fast.commons.web.model.AjaxResponse;
import com.fast.commons.web.model.DataGrid;

public abstract interface BaseService<T extends Serializable> {
	
	public AjaxResponse add(T record) ;
	
	public AjaxResponse delete(long id) ;
	
	public AjaxResponse deleteBatch(Long[] ids) ;
	
	public AjaxResponse update(T record) ;
	
	public T get(long id) ;
	
	public List<T> getAllList(T record) ;
	
	public DataGrid<T> datagrid(T conditions) ;

}
